import { createApp } from 'vue'
import "/@/theme/index.scss"
import "ant-design-vue/dist/reset.css";
import App from './App.vue'
import router from "/@/router/index"
import pinia from "/@/store/index"
import Antd from "ant-design-vue";
import directive from "/@/directive/scroll.js";
import * as AntIcons from "@ant-design/icons-vue";

const app = createApp(App)
directive(app);

app.config.productionTip = false;
// 全局注册所有图标
Object.keys(AntIcons).forEach((iconName) => {
	app.component(iconName, AntIcons[iconName]);
});
app.use(Antd)
	.use(pinia)
	.use(router)
	.mount('#app')
